// cookbook数据处理  模型层
import { get } from '../api'
import config from '../config/uri'

class CookbookModel {

  // swiper数据获取
  async getSwiperData() {
    let ret = await get(config.swiper)
    /* let data = ret.data.data
    console.log(data.slice(0, 2));
    return data.slice(0, 2) */
    return ret
  }

}

export default new CookbookModel()